package com.java.androidmarket.service;

import com.java.androidmarket.entity.Goods;
import com.java.androidmarket.entity.OrderGoods;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * description:
 * author:张腾
 * date:2021-04-21
 */

public interface GoodsService {
    List<Goods> selectForHomePage();

    Goods getGoodsDetails(int goodsId);

    double getTotalPrice(List<OrderGoods> goodsList);

    List<Goods> selectByCate(String goodsCategory, int goodsPage);

    List<Goods> search(String search);

    List<Goods> getKillGoods();

    boolean checkKillTime() throws ParseException;

    void dealCountChange(int goodsId,int goodsNum);

}
